import React from 'react';
import { axconst } from '@/shared/axconst';
import { AxStandardCardButtonType, AxStandardCardFilterType } from '@/components/AxList/AxStandardLayout/data.d';
import { AxStandardWideList } from '@/components/AxList/AxStandardWideList';
import AxColumnAction from '@/components/AxList/AxColumnAction';

const Index: React.FC<any> = props => {
    /** 配置列 */
    const columns = [
        {
            title: '姓名',
            dataIndex: 'receiver',
            width: axconst.width.threeonly,
        },
        {
            title: '校园ID',
            dataIndex: 'schoolId',
            width: axconst.width.long,
        },
        {
            title: '联系电话',
            dataIndex: 'phone',
            width: axconst.width.long,
        },
        {
            title: '类型',
            dataIndex: 'userType',
            width: axconst.width.fouronly,
        },
        {
            title: '操作',
            width: axconst.width.operate8,
            render: (value: any, record: any) => (
                <AxColumnAction
                    buttons={[
                        {
                            text: '删除',
                            // onClick: () => setRecordVisible(true),
                        },
                    ]}
                />
            ),
        },
    ];

    /** 配置操作按钮 */
    const button: AxStandardCardButtonType[] = [];

    const filter: AxStandardCardFilterType[] = []

    return (
        <>
            <AxStandardWideList
                columns={columns}
                button={button}
                filter={filter}
                data={{...axconst.data}}
            />
        </>
    );
};

export default Index;
